package org.vshe.improve.spring.prospring3.ch7.aspectjannotation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MyBean {
	
	@Autowired
	private MyDependency myDependency;
	
	public void execute() {
		myDependency.foo(100);
		myDependency.foo(101);
		myDependency.bar();
	}
	
	
	public void setDep(MyDependency dep) {
		this.myDependency = dep;
	}
}
